package org.tlipoca.smarticle.service;

import org.genntii.smcommon.result.PageResult;
import org.genntii.smdomain.doc.ArticleDoc;
import org.genntii.smdomain.entity.Article;
import org.genntii.smdomain.vo.ArticleDocHandleResponseVO;

import java.io.IOException;
import java.util.ArrayList;

public interface EsArticleService {
    ArticleDocHandleResponseVO queryAllArticle()throws IOException;

    void insertArticle(Article article) throws IOException;

    void deleteArticle(Article article);

    PageResult<ArticleDoc> search(String keyword, Integer pageNum, Integer pageSize);
}
